package com.centit.framework.ip.agentofd.po;

import java.util.Date;
import java.sql.Timestamp;
import javax.persistence.Column;


import javax.persistence.Id;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


/**
 * create by scaffold 2018-07-30 
 * @author codefan@sina.com
 
  新旧文件转换映射信息表新旧文件转换映射信息表   
*/
@Entity
@Table(name = "T_OLD_NEWFILEINFO")
public class OldNewfileinfo implements java.io.Serializable {
	private static final long serialVersionUID =  1L;



	/**
	 * 主键 主键 
	 */
	@Id
	@Column(name = "recId")
	
	private String recid;

	/**
	 * 旧文件主键 旧文件主键 
	 */
	@Column(name = "odlFileId")
	@Length(min = 0, max = 50, message = "字段长度不能小于{min}大于{max}")
	private String  odlfileid;
	/**
	 * 新文件主键 新文件主键 
	 */
	@Column(name = "newFileId")
	@Length(min = 0, max = 50, message = "字段长度不能小于{min}大于{max}")
	private String  newfileid;
	/**
	 * 摘要说明 摘要说明 
	 */
	@Column(name = "summary")
	@Length(min = 0, max = 1000, message = "字段长度不能小于{min}大于{max}")
	private String  summary;
	/**
	 * 具体信息 具体信息 
	 */
	@Column(name = "content")
	@Length(min = 0, max = 4000, message = "字段长度不能小于{min}大于{max}")
	private String  content;
	/**
	 * 创建日期 创建日期 
	 */
	@Column(name = "createTime")
	private Date  createtime;

	// Constructors
	/** default constructor */
	public OldNewfileinfo() {
	}
	/** minimal constructor */
	public OldNewfileinfo(
		String recid		
		) {
	
	
		this.recid = recid;		
			
	}

/** full constructor */
	public OldNewfileinfo(
	 String recid		
	,String  odlfileid,String  newfileid,String  summary,String  content,Date  createtime) {
	
	
		this.recid = recid;		
	
		this.odlfileid= odlfileid;
		this.newfileid= newfileid;
		this.summary= summary;
		this.content= content;
		this.createtime= createtime;		
	}
	

  
	public String getRecid() {
		return this.recid;
	}

	public void setRecid(String recid) {
		this.recid = recid;
	}
	// Property accessors
  
	public String getOdlfileid() {
		return this.odlfileid;
	}
	
	public void setOdlfileid(String odlfileid) {
		this.odlfileid = odlfileid;
	}
  
	public String getNewfileid() {
		return this.newfileid;
	}
	
	public void setNewfileid(String newfileid) {
		this.newfileid = newfileid;
	}
  
	public String getSummary() {
		return this.summary;
	}
	
	public void setSummary(String summary) {
		this.summary = summary;
	}
  
	public String getContent() {
		return this.content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
  
	public Date getCreatetime() {
		return this.createtime;
	}
	
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}



	public OldNewfileinfo copy(OldNewfileinfo other){
  
		this.setRecid(other.getRecid());
  
		this.odlfileid= other.getOdlfileid();  
		this.newfileid= other.getNewfileid();  
		this.summary= other.getSummary();  
		this.content= other.getContent();  
		this.createtime= other.getCreatetime();

		return this;
	}
	
	public OldNewfileinfo copyNotNullProperty(OldNewfileinfo other){
  
	if( other.getRecid() != null){
	this.setRecid(other.getRecid());}
  
		if( other.getOdlfileid() != null){
		this.odlfileid= other.getOdlfileid();}  
		if( other.getNewfileid() != null){
		this.newfileid= other.getNewfileid();}  
		if( other.getSummary() != null){
		this.summary= other.getSummary();}  
		if( other.getContent() != null){
		this.content= other.getContent();}  
		if( other.getCreatetime() != null){
		this.createtime= other.getCreatetime();}		

		return this;
	}

	public OldNewfileinfo clearProperties(){
  
		this.odlfileid= null;  
		this.newfileid= null;  
		this.summary= null;  
		this.content= null;  
		this.createtime= null;

		return this;
	}
}
